﻿#ifndef DATAPACKAGE_TCPCODEC_H
#define DATAPACKAGE_TCPCODEC_H

#include <qobject.h>

class DataPackage_TcpCodec : public QObject
{
  Q_OBJECT
private://property
  unsigned char packageType=0;
  QByteArray data;
public:
  explicit DataPackage_TcpCodec();
  DataPackage_TcpCodec(const DataPackage_TcpCodec& dataPackageInfo_User);
  virtual ~DataPackage_TcpCodec();
signals:
public://geter and seter
  unsigned char getPackageType()const;
  DataPackage_TcpCodec* setPackageType(unsigned char packageType);
  QByteArray getData() const;
  DataPackage_TcpCodec* setData(const QByteArray data);
};

#endif // DATAPACKAGEINFO_USER_H
